package com.wudl.govern.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * meta_foreignkey
 *
 * @author wudl
 */
@Data
@ApiModel
public class MetaForeignkeyVO {

    @ApiModelProperty(value = "主键")
    private Integer metaFkId;

    @ApiModelProperty(value = "外键名称")
    private String metaFkName;

    @ApiModelProperty(value = "外键长名称")
    private String fkFullName;

    @ApiModelProperty(value = "外键短名称")
    private String fkShortName;

    @ApiModelProperty(value = "字段(外键的列名称)")
    private String foreignKeyColumn;

    @ApiModelProperty(value = "参考模式")
    private String referenceSchema;

    @ApiModelProperty(value = "参考表")
    private String referenceTable;

    @ApiModelProperty(value = "参考字段(引用的主键列名称)")
    private String primaryKeyColumn;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "属性Map")
    private String attributeMap;

    @ApiModelProperty(value = "meta_table_id")
    private Integer metaTableId;

    @ApiModelProperty(value = "0无效 1有效")
    private Integer dataState;

    @ApiModelProperty(value = "最后操作： 0 初始状态  1新增，2修改，3删除")
    private Integer lastOperation;

    @ApiModelProperty(value = "0:初始状态 1待审核  2审核通过 3审核不通过")
    private Integer lastOperationStatus;

    @ApiModelProperty(value = "是否可延迟")
    private String deferrability;

    @ApiModelProperty(value = "修改策略")
    private String updateRule;

    @ApiModelProperty(value = "删除策略")
    private String deleteRule;

    @ApiModelProperty(value = "元数据目录id")
    private Integer metaDirId;

    @ApiModelProperty(value = "数据库目录id")
    private Integer metaDbDirId;

    @ApiModelProperty(value = "1:字段,2:索引,3:外键,4:触发器")
    private Integer contentType;

    @ApiModelProperty(value = "version")
    private Integer version;

}